package com.lcredu.utils;

/**
 * 枚举类: 用于定义默认值
 *
 * @author 黎长容
 * @date 2025-07-06 14:24
 */
public enum DefaultMsg {
    DEFAULT_IMG_PATH("assets/images/product-image/default.jpg", null, null),
    DEFAULT_PAGE_SIZE(null, 3, null),
    DEFAULT_FILEPATH(null, null, "assets/images/product-image");

    private String imgPath;
    private Integer pageSize;
    private String filePath;

    /**
     * 枚举构造函数
     *
     * @param imgPath  图片路径，如果不需要则为null
     * @param pageSize 每页大小，如果不需要则为null
     * @param filePath 文件上传路径，如果不需要则为null
     */
    DefaultMsg(String imgPath, Integer pageSize, String filePath) {
        this.imgPath = imgPath;
        this.pageSize = pageSize;
        this.filePath = filePath;
    }

    public String getImgPath() {
        return imgPath;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public String getFilePath() {
        return filePath;
    }
}